package me;

import java.io.Serializable;

/**
 * @author yexy
 * @date 2020/7/1 2:21 AM
 * @description
 */
public class Message implements Serializable {
    static final long serialVersionUID = -3387516993124229948L;
    private int type;     ///1  chat    2 file  3 exit
    private String message;   // mesage content ||  file name;

    public byte[] getFileContent() {
        return fileContent;
    }

    public void setFileContent(byte[] fileContent) {
        this.fileContent = fileContent;
    }

    private byte[] fileContent;

    public Message(int type, String message) {
        this.type = type;
        this.message = message;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
